package com.qfedu.fmmall.orderAdd.service.feign;

import com.qfedu.fmmall.orderAdd.service.fallback.StockQueryFallback;
import com.qfedu.fmmall.vo.ShoppingCartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/2/10 14:35
 */
@Repository
@FeignClient(value = "stock-query", fallback = StockQueryFallback.class)
public interface StockQueryClient {
    @GetMapping("/stock/query")
    List<ShoppingCartVO> query(@RequestParam("cids") String cids);
}
